package com.aj.activity.view;

import com.aj.activity.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

public class BottomMenberView extends LinearLayout {

    Button mButton;

    public BottomMenberView(Context context) {
        super(context);
        initDraw(context);
    }

    public BottomMenberView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initDraw(context);
    }

    private void initDraw(Context context) {
        View view = LayoutInflater.from(context).inflate(R.layout.bottom_member_layout, this, false);
        mButton = (Button) view.findViewById(R.id.mVerticalTextView);
        this.addView(view);
    }

    public void setText(CharSequence text) {
        mButton.setText(text);
    }

    public void setText(int resid) {
        mButton.setText(resid);
    }

    public void setBackgroundResource(int resid) {
        mButton.setBackgroundResource(resid);
    }
}
